ThemeUtils

open class ThemeUtils(source)

Functions

Link copied to clipboard
open fun checkAppCompatTheme(@NonNull view: @NonNull View, @NonNull context: @NonNull Context)
Checks that the specific view (which should be an AppCompat widget) is using a Context that is an AppCompat theme or its descendant.
Link copied to clipboard
@NonNull
open fun createDisabledStateList(textColor: Int, disabledTextColor: Int): @NonNull ColorStateList
Creates a color state list from the provided colors.
Link copied to clipboard
open fun getDisabledThemeAttrColor(@NonNull context: @NonNull Context, attr: Int): Int
Resolves the disabled color from the provided theme attribute.
Link copied to clipboard
open fun getThemeAttrColor(@NonNull context: @NonNull Context, attr: Int): Int
Resolves the color from the provided theme attribute.
Link copied to clipboard
@Nullable
open fun getThemeAttrColorStateList(@NonNull context: @NonNull Context, attr: Int): @Nullable ColorStateList
Resolves the color state list from the provided theme attribute.